﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Windows.Forms;

namespace HMS_TabletClient
{
    public partial class NumberKey : UserControl
    {
        public NumberKey()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
                System.Windows.Forms.SendKeys.Send("1");
            //    System.Windows.Forms.SendKeys.Send("{ENTER}");

        }

        private void button2_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("2");
        }

        private void button3_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("3");
        }

        private void button4_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("4");
        }

        private void button5_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("5");
        }

        private void button6_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("6");
        }

        private void button7_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("7");
        }

        private void button8_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("8");
        }

        private void button9_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("9");
        }

        private void button11_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("0");
        }

        private void button10_Click(object sender, EventArgs e)
        {
            System.Windows.Forms.SendKeys.Send("{Backspace}");
        }


    }
}
